<?php
    namespace Home\Model;
    use Think\Model;
    class UsergroupModel extends Model {
        public function Init($Usrrootid){
            $cond = array(
                'number'=>  $Usrrootid
            );
            
            $data = $this->where($cond)->find();

            foreach($data as $key => $value){
                if($value == 'T'){
                    $data[$key] = true;
                }elseif($value == 'F'){
                    $data[$key] = false;
                }
            }
            return  $data;
        }
    }
